﻿using System;

namespace APP.HELPER.Utils.Net
{
    public class DownloadEventArgs : EventArgs
    {
        private int int_0;
        private string string_0;
        private long long_0;
        private long long_1;
        public long TotalFileSize
        {
            get
            {
                return this.long_0;
            }
            set
            {
                this.long_0 = value;
            }
        }
        public long CurrentFileSize
        {
            get
            {
                return this.long_1;
            }
            set
            {
                this.long_1 = value;
            }
        }
        public int PercentDone
        {
            get
            {
                return this.int_0;
            }
        }
        public string DownloadState
        {
            get
            {
                return this.string_0;
            }
        }
        public DownloadEventArgs(long totalFileSize, long currentFileSize)
        {
            this.long_0 = totalFileSize;
            this.long_1 = currentFileSize;
            this.int_0 = (int)((double)currentFileSize / (double)totalFileSize * 100.0);
        }
        public DownloadEventArgs(string state)
        {
            this.string_0 = state;
        }
        public DownloadEventArgs(int percentDone, string state)
        {
            this.int_0 = percentDone;
            this.string_0 = state;
        }
    }
    public delegate void DownloadProgressHandler(object sender, DownloadEventArgs e);
}
